package com.jiyun.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("ID")
    private Integer id;
    @ExcelProperty("物资名称")
    private String name;

    @ExcelIgnore
    private Integer categoryId;
    @ExcelIgnore
    private Integer brandId;

    @ExcelProperty("规格")
    private String sku;

    @ExcelProperty("库存")
    private Integer num;
    @ExcelProperty("备注")
    private String remark;

    @TableField(exist = false)
    @ExcelProperty("分类")
    private String categoryName;
    @TableField(exist = false)
    @ExcelProperty("品牌")
    private String brandName;


}
